package com.scn.base.listener;

import org.springframework.context.ApplicationContext;

public class ApplicationContextUtil {
	 private static ApplicationContext context;
	 private static int sessionCount=0;

	public static int getSessionCount() {
		return sessionCount;
	}

	public static void addSessionCount() {
		ApplicationContextUtil.sessionCount++;
	}
	public static void plusSessionCount() {
		ApplicationContextUtil.sessionCount --;
	}
	public static ApplicationContext getContext() {
		return context;
	}

	public static void setContext(ApplicationContext context) {
		ApplicationContextUtil.context = context;
	}

}
